import request from '@/utils/request'

/**查询关税税率列表 */
export function listHsCodeRate(params) {
  return request({
    url: '/distribution/hsCodeRate/list',
    params
  })
}

/**查询关税税率详细 */
export function getHsCodeRate(id) {
  return request({
    url: '/distribution/hsCodeRate/' + id,
  })
}

/**新增关税税率 */
export function addHsCodeRate(data) {
  return request({
    url: '/distribution/hsCodeRate',
    method: 'post',
    data
  })
}

/**修改关税税率 */
export function updateHsCodeRate(data) {
  return request({
    url: '/distribution/hsCodeRate',
    method: 'put',
    data
  })
}
/**删除关税税率 */
export function delHsCodeRate(id) {
  return request({
    url: '/distribution/hsCodeRate/' + id,
    method: 'delete'
  })
}

/**根据编码查询SKU列表 */
export function getSkuByHsCode(params) {
  return request({
    url: '/distribution/hsCodeRate/getSkuByHsCode',
    params
  })
}

